<template>
    <div>
        <a-col :flex="5">
            <div style="border: none; display: flex; margin: 0; padding: 12px 15px;
                            background: #f8f8f8; border-radius: 4px 4px 0 0; position: relative">
                <img src="/image/logo.jpg" alt="" style="width: 60px; height: 60px; border-radius: 50%">
                <div class="user-info">
                    <a class="username" href="">大西</a>
                </div>
            </div>
            <nav style="display: block">
                <div class="ui vertical menu profile-setting">
                    <div class="item">
                        <div class="header">
                            消息中心
                        </div>
                        <div class="menu">
                            <router-link class="item " to="/personal/myMessage/message"><i class="icon bell"></i>
                                我的消息
                            </router-link>
                            <router-link class="item " to="/personal/consulting"><i class="icon bell"></i>
                                咨询
                            </router-link>
                        </div>
                    </div>
                    <div class="item">
                        <div class="header">
                            基本设置
                        </div>
                        <div class="menu">
                            <router-link class="item " to="/personal/accountInformation"><i class="icon bell"></i>
                                账号信息
                            </router-link>
                            <router-link class="item " to="/personal/personalInformation"><i class="icon bell"></i>
                                个人资料
                            </router-link>
                            <router-link class="item " to="/personal/realName"><i class="icon bell"></i>
                                实名认证
                            </router-link>
                        </div>
                    </div>
                    <div class="item">
                        <div class="header">
                            交易中心
                        </div>
                        <div class="menu">
                            <router-link class="item " to="/personal/wallet"><i class="icon bell"></i>
                                我的钱包
                            </router-link>
                            <router-link class="item " to="/personal/orderRecord"><i class="icon bell"></i>
                                订单记录
                            </router-link>
                        </div>
                    </div>
                </div>
            </nav>
        </a-col>
    </div>
</template>

<script lang="ts">
    import { defineComponent } from 'vue';

    export default defineComponent({
        name: 'the-personal',
        setup() {

        }
    });
</script>

<style scoped>
    .ant-col {
        padding-right: 50px;
    }

    .ant-row {
        margin:20px 0;
    }

    .ant-layout {
        background: white;
    }

    .user-info .username {
        display: block;
        font-size: 1.2em;
        margin-top: 5px;
        margin-bottom: 10px;
        overflow: hidden;
        white-space: nowrap;
        text-overflow: ellipsis;
    }

    .user-info {
        clear: both;
        display: inline-block;
        padding-left: 8px;
        padding-right: 8px;
        overflow: hidden;
    }

    a {
        text-decoration: none;
        cursor: pointer;
        color: #005980;
    }

    .ui.vertical.menu {
        border-radius: 0 0 4px 4px;
        border-color: rgba(0,0,0,0);
        border-top-color: rgba(0, 0, 0, 0);
        border-top-color: #e3e9ed;
    }

    .ui.vertical.menu {
        width: auto;
    }

    .ui.vertical.menu {
        border-radius: 4px;
        border: 1px solid #e3e9ed;
        border-top-color: rgb(227, 233, 237);
        border-right-color: rgb(227, 233, 237);
        border-bottom-color: rgb(227, 233, 237);
        border-left-color: rgb(227, 233, 237);
        -webkit-box-shadow: none;
        box-shadow: none;
        background: #fff;
        padding: 12px 0;
    }

    .ui.menu {
        margin: 1rem 0rem;
        margin-top: 1rem;
        margin-bottom: 1rem;
        background: #ffffff;
        font-size: 0px;
        font-weight: normal;
        -webkit-box-shadow: 0px 0px 0px 1px rgba(39,41,43,0.15),0px 1px 2px 0 rgba(0,0,0,0.05);
        box-shadow: 0px 0px 0px 1px rgba(39,41,43,0.15),0px 1px 2px 0 rgba(0,0,0,0.05);
        border-radius: 0.2857rem;
    }

    .profile-setting {
        padding: 0 !important;
    }

    .ui.vertical.menu .item {
        line-height: 1.78;
    }

    .ui.vertical.menu .item {
        background: none;
        display: block;
        height: auto !important;
        border-top: none;
        border-left: 0em solid transparent;
        border-right: none;
        margin: 0 10px
    }

    .ui.menu .item {
        font-size: 1rem;
    }

    .ui.vertical.menu .item:not(.dropdown) > .menu > .item {
        background: none;
        padding: 0.5rem 1.5rem;
        padding-right: 1.5rem;
        padding-left: 1.5rem;
        font-size: 0.875rem;
    }

    .ui.vertical.menu .item {
        background: none;
        display: block;
        height: auto !important;
        border-top: none;
        border-left: 0em solid transparent;
        border-right: none;
    }

    .ui.menu .item .item {
        color: rgba(0,0,0,0.5);
    }

    .profile-setting .menu .item {
        padding-left: 0.95em !important;
        padding-right: 0.95em !important;
    }

    .ui.menu .item {
        position: relative;
        text-decoration: none;
        box-sizing: border-box;
        user-select: none;
        transition: opacity 0.2s ease, background 0.2s ease, box-shadow 0.2s ease, -webkit-box-shadow 0.2s ease;
    }

    .ui.menu .item {
        color: rgba(0,0,0,0.8);
    }

    a.router-link-active {
        color: black !important;
        font-weight: bold;
    }

    a.router-link-active span::before{ content: ''; width: 100%; height: 1px; display: block; }
</style>